<?php $this->_extends('../_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
<script type="text/javascript">
$(function(){
	$(".datepicker").datepicker({dateFormat:'yy-mm-dd',changeMonth:true});
});
</script>
<fieldset><legend>查询条件</legend>
<form method="get">
<? include(Q::ini('custom_system/elements_dir') . 'searchform_element.php');?>
<table class="form_table">
<tr>
	<th>日期：</th>
	<td>
		<input type="text" class="datepicker" name="begin" value="<?=isset($_GET['begin'])?$_GET['begin']:date('Y-m-01', strtotime(date('Y-m-d',CURRENT_TIMESTAMP).' -1 month'))?>" /> to 
		<input type="text" class="datepicker" name="end" value="<?=isset($_GET['end'])?$_GET['end']:date('Y-m-t', strtotime(date('Y-m-d',CURRENT_TIMESTAMP).' -1 month'))?>" />
	</td>
</tr>
<tr>
	<td><input type="hidden" name="is_search" value="1" /></td>
	<td><input type="submit" class="button" value="查询" /></td>
</tr>
</table>
</form></fieldset>
<?if (isset($file_name)):?><a href="<?=$file_name?>">下载结果</a><?endif;?>
<?php $this->_endblock();?>